package vip.meeet.spring.start;

import cn.freemethod.spring.aspectscan.AspectS;
import cn.freemethod.spring.bean.AppBean;
import cn.freemethod.spring.bean.DubboBean;
import cn.freemethod.spring.config.AppConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;

public class AnnotationConfigStart {
	
	public static void main(String[] args) {
		AbstractApplicationContext  context = new AnnotationConfigApplicationContext(AppConfig.class);
		AppBean appBean = context.getBean(AppBean.class);
		System.out.println(appBean);
		DubboBean dubboBean = context.getBean(DubboBean.class);
		System.out.println(dubboBean);
		AspectS aspectS = context.getBean(AspectS.class);
		System.out.println(aspectS);
        context.close();
	}

}
